﻿using Facebook;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Hangout.Web.Core.Social
{
    public class Facebook
    {
        public static  void ShareOnFacebook(string accessToken, string Status, Dictionary<string, object> parameters,ref Model.HangoutDBEntities context)
        {
            try
            {
                var client = new FacebookClient(accessToken);
                parameters["message"] = Status;
                client.Post("me/feed", parameters);
            }
            catch (Exception ex)
            {
                Core.Exceptions.ExceptionReporting.AddAnException(0, Web.Core.ClientType.WindowsAzure, ex, ref context);
            }


        }
    }
}